﻿var id = 0;
var prefix = 'autoId-';
function issueIds() {

    $('*').each(function(i, el) {
        if (el.id == undefined || el.id == '')
            $(el).attr('id', prefix + (id++).toString());
    });
}
function jQueryExec(query) {
    var idArr = [];
    var results = $(query).each(function(index, el) {
        idArr.push(el.id);
    });
    return idArr;
}